﻿using Grow.Module.Service;

namespace Grow.Domain.Repository.EntityFrameworkCore.SqlServer
{
    public class SqlServerUnitOfWorkManager : UnitOfWorkManagerBase
    {
        public SqlServerUnitOfWorkManager(IServiceContext serviceContext) : base(serviceContext)
        {
        }

        public override IDbContext GetDefaultDbContext(UnitOfWorkOptions dbOptions)
        {
            return _serviceContext.GetRequiredService<SqlServerDbContext>();
        }
    }
}